package net.wwang.open.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * @author WangWei
 * @date 2020/8/11
 */
@Entity
@Table(name = "setting")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Setting {

    @Id
    private String id;
    @Column(name = "`key`")
    private String key;
    @Column(name = "`value`")
    private int value;
    @Column(name = "create_time")
    private Timestamp createTime;
    @Column(name = "update_time")
    private Timestamp updateTime;
}
